package com.shuaijx;

public class Main {

    public static void main(String[] args) {
        Array<String> array = new Array(5);
        for (int i = 0; i < 5; i++) {
            array.addLast(i+"");
        }
        System.out.println(array.toString());

        array.add(0,11+"");
        System.out.println(array.toString());

        array.set(0,12+"");
        System.out.println(array.toString());

        array.remove(1);
        System.out.println(array.toString());

        boolean contains = array.contains(2+"");
        System.out.println(contains);

        array.removeFirst();
        System.out.println(array.toString());

        array.removeLast();
        System.out.println(array.toString());

        array.add(0,"a");
        System.out.println(array.toString());

    }

}
